setSystemGestureExclusionRects

Sets a list of areas within this view's post-layout coordinate space where the system should not intercept touch or other pointing device gestures. This method should be called by onLayout or onDraw.

On devices running API 28 and below, this method has no effect.

Parameters

view

view for which to set the exclusion rects.

rects

A list of precision gesture regions that this view needs to function correctly

See also